using System;
using System.Collections.Generic;
using System.Text;
using OneSoft.EntityCore;

namespace BySoft.Server.Common.Schema
{
	[Serializable]
	public class StStockmanagedetailTable : TableInfo
	{
		public const string C_TABLENAME = "St_Stockmanagedetail"; 

		public const string C_STOCKMANAGEDETAILID = "STOCKMANAGEDETAILID";
		public const string C_ORDERDETAILID = "ORDERDETAILID";
		public const string C_ORDERTYPE = "ORDERTYPE";
		public const string C_SUPPLIERID = "SUPPLIERID";
		public const string C_FORMNAME = "FORMNAME";
		public const string C_FORMID = "FORMID";
		public const string C_FORMTYPE = "FORMTYPE";
		public const string C_FORMDATE = "FORMDATE";
		public const string C_FORMOPERATOR = "FORMOPERATOR";
		public const string C_FORMDETAILID = "FORMDETAILID";
		public const string C_STOCKID = "STOCKID";
		public const string C_PARTSID = "PARTSID";
		public const string C_PARTSNAME = "PARTSNAME";
		public const string C_SPECIFICATIONS = "SPECIFICATIONS";
		public const string C_TYPEID = "TYPEID";
		public const string C_UNIT = "UNIT";
		public const string C_PARTSTYPE = "PARTSTYPE";
		public const string C_CHANGETYPE = "CHANGETYPE";
		public const string C_PARTSNUM = "PARTSNUM";
		public const string C_PRICE = "PRICE";
				
		public StStockmanagedetailTable()
		{
			_tableName ="St_Stockmanagedetail";
		}

		protected static StStockmanagedetailTable _current;

		public static StStockmanagedetailTable Current
		{
			get
			{
				if (_current == null )
				{
					Initial();
				}
				return _current;
			}
		}

		private static void Initial()
		{
			_current = new StStockmanagedetailTable();

			_current.Add(C_STOCKMANAGEDETAILID, new ColumnInfo(C_STOCKMANAGEDETAILID, "", true, typeof(Decimal?)));
			_current.Add(C_ORDERDETAILID, new ColumnInfo(C_ORDERDETAILID, "", false, typeof(Int32?)));
			_current.Add(C_ORDERTYPE, new ColumnInfo(C_ORDERTYPE, "", false, typeof(String)));
			_current.Add(C_SUPPLIERID, new ColumnInfo(C_SUPPLIERID, "", false, typeof(String)));
			_current.Add(C_FORMNAME, new ColumnInfo(C_FORMNAME, "", false, typeof(String)));
			_current.Add(C_FORMID, new ColumnInfo(C_FORMID, "", false, typeof(String)));
			_current.Add(C_FORMTYPE, new ColumnInfo(C_FORMTYPE, "", false, typeof(String)));
			_current.Add(C_FORMDATE, new ColumnInfo(C_FORMDATE, "", false, typeof(DateTime?)));
			_current.Add(C_FORMOPERATOR, new ColumnInfo(C_FORMOPERATOR, "", false, typeof(String)));
			_current.Add(C_FORMDETAILID, new ColumnInfo(C_FORMDETAILID, "", false, typeof(String)));
			_current.Add(C_STOCKID, new ColumnInfo(C_STOCKID, "", false, typeof(String)));
			_current.Add(C_PARTSID, new ColumnInfo(C_PARTSID, "", false, typeof(String)));
			_current.Add(C_PARTSNAME, new ColumnInfo(C_PARTSNAME, "", false, typeof(String)));
			_current.Add(C_SPECIFICATIONS, new ColumnInfo(C_SPECIFICATIONS, "", false, typeof(String)));
			_current.Add(C_TYPEID, new ColumnInfo(C_TYPEID, "", false, typeof(String)));
			_current.Add(C_UNIT, new ColumnInfo(C_UNIT, "", false, typeof(String)));
			_current.Add(C_PARTSTYPE, new ColumnInfo(C_PARTSTYPE, "", false, typeof(String)));
			_current.Add(C_CHANGETYPE, new ColumnInfo(C_CHANGETYPE, "", false, typeof(String)));
			_current.Add(C_PARTSNUM, new ColumnInfo(C_PARTSNUM, "", false, typeof(Decimal?)));
			_current.Add(C_PRICE, new ColumnInfo(C_PRICE, "", false, typeof(Decimal?)));
						
		}

		public ColumnInfo STOCKMANAGEDETAILID
		{
			get { return this[C_STOCKMANAGEDETAILID];}
		}

		public ColumnInfo ORDERDETAILID
		{
			get { return this[C_ORDERDETAILID];}
		}

		public ColumnInfo ORDERTYPE
		{
			get { return this[C_ORDERTYPE];}
		}

		public ColumnInfo SUPPLIERID
		{
			get { return this[C_SUPPLIERID];}
		}

		public ColumnInfo FORMNAME
		{
			get { return this[C_FORMNAME];}
		}

		public ColumnInfo FORMID
		{
			get { return this[C_FORMID];}
		}

		public ColumnInfo FORMTYPE
		{
			get { return this[C_FORMTYPE];}
		}

		public ColumnInfo FORMDATE
		{
			get { return this[C_FORMDATE];}
		}

		public ColumnInfo FORMOPERATOR
		{
			get { return this[C_FORMOPERATOR];}
		}

		public ColumnInfo FORMDETAILID
		{
			get { return this[C_FORMDETAILID];}
		}

		public ColumnInfo STOCKID
		{
			get { return this[C_STOCKID];}
		}

		public ColumnInfo PARTSID
		{
			get { return this[C_PARTSID];}
		}

		public ColumnInfo PARTSNAME
		{
			get { return this[C_PARTSNAME];}
		}

		public ColumnInfo SPECIFICATIONS
		{
			get { return this[C_SPECIFICATIONS];}
		}

		public ColumnInfo TYPEID
		{
			get { return this[C_TYPEID];}
		}

		public ColumnInfo UNIT
		{
			get { return this[C_UNIT];}
		}

		public ColumnInfo PARTSTYPE
		{
			get { return this[C_PARTSTYPE];}
		}

		public ColumnInfo CHANGETYPE
		{
			get { return this[C_CHANGETYPE];}
		}

		public ColumnInfo PARTSNUM
		{
			get { return this[C_PARTSNUM];}
		}

		public ColumnInfo PRICE
		{
			get { return this[C_PRICE];}
		}

		
	}
}


